import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
import numpy as np
df=pd.read_csv('tips.csv')
print(df.head())
#统计每个类别的个数
sns.countplot(x='sex',data=df,hue='smoker')
plt.show()
